Optimal. Leaf size=77 \[ \frac {2 \sqrt {2} a \tanh ^{-1}\left (\frac {\sqrt {c} \cos (e+f x)}{\sqrt {2} \sqrt {c-c \sin (e+f x)}}\right )}{\sqrt {c} f}-\frac {2 a \cos (e+f x)}{f \sqrt {c-c \sin (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.14, antiderivative size = 77, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {2736, 2679, 2649, 206} \[ \frac {2 \sqrt {2} a \tanh ^{-1}\left (\frac {\sqrt {c} \cos (e+f x)}{\sqrt {2} \sqrt {c-c \sin (e+f x)}}\right )}{\sqrt {c} f}-\frac {2 a \cos (e+f x)}{f \sqrt {c-c \sin (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 2649
Rule 2679
Rule 2736
Rubi steps
\begin {align*} \int \frac {a+a \sin (e+f x)}{\sqrt {c-c \sin (e+f x)}} \, dx &=(a c) \int \frac {\cos ^2(e+f x)}{(c-c \sin (e+f x))^{3/2}} \, dx\\ &=-\frac {2 a \cos (e+f x)}{f \sqrt {c-c \sin (e+f x)}}+(2 a) \int \frac {1}{\sqrt {c-c \sin (e+f x)}} \, dx\\ &=-\frac {2 a \cos (e+f x)}{f \sqrt {c-c \sin (e+f x)}}-\frac {(4 a) \operatorname {Subst}\left (\int \frac {1}{2 c-x^2} \, dx,x,-\frac {c \cos (e+f x)}{\sqrt {c-c \sin (e+f x)}}\right )}{f}\\ &=\frac {2 \sqrt {2} a \tanh ^{-1}\left (\frac {\sqrt {c} \cos (e+f x)}{\sqrt {2} \sqrt {c-c \sin (e+f x)}}\right )}{\sqrt {c} f}-\frac {2 a \cos (e+f x)}{f \sqrt {c-c \sin (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.65, size = 135, normalized size = 1.75 \[ -\frac {2 a \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) \left (\sqrt {c} (\sin (e+f x)+1)+\sqrt {2} \sqrt {-c (\sin (e+f x)+1)} \tan ^{-1}\left (\frac {\sqrt {-c (\sin (e+f x)+1)}}{\sqrt {2} \sqrt {c}}\right )\right )}{\sqrt {c} f \sqrt {c-c \sin (e+f x)} \left (\sin \left (\frac {1}{2} (e+f x)\right )+\cos \left (\frac {1}{2} (e+f x)\right )\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.45, size = 196, normalized size = 2.55 \[ \frac {\frac {\sqrt {2} {\left (a c \cos \left (f x + e\right ) - a c \sin \left (f x + e\right ) + a c\right )} \log \left (-\frac {\cos \left (f x + e\right )^{2} + {\left (\cos \left (f x + e\right ) - 2\right )} \sin \left (f x + e\right ) + \frac {2 \, \sqrt {2} \sqrt {-c \sin \left (f x + e\right ) + c} {\left (\cos \left (f x + e\right ) + \sin \left (f x + e\right ) + 1\right )}}{\sqrt {c}} + 3 \, \cos \left (f x + e\right ) + 2}{\cos \left (f x + e\right )^{2} + {\left (\cos \left (f x + e\right ) + 2\right )} \sin \left (f x + e\right ) - \cos \left (f x + e\right ) - 2}\right )}{\sqrt {c}} - 2 \, {\left (a \cos \left (f x + e\right ) + a \sin \left (f x + e\right ) + a\right )} \sqrt {-c \sin \left (f x + e\right ) + c}}{c f \cos \left (f x + e\right ) - c f \sin \left (f x + e\right ) + c f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: NotImplementedError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.72, size = 94, normalized size = 1.22 \[ -\frac {2 \left (\sin \left (f x +e \right )-1\right ) \sqrt {c \left (1+\sin \left (f x +e \right )\right )}\, a \left (\sqrt {c}\, \sqrt {2}\, \arctanh \left (\frac {\sqrt {c \left (1+\sin \left (f x +e \right )\right )}\, \sqrt {2}}{2 \sqrt {c}}\right )-\sqrt {c \left (1+\sin \left (f x +e \right )\right )}\right )}{c \cos \left (f x +e \right ) \sqrt {c -c \sin \left (f x +e \right )}\, f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {a \sin \left (f x + e\right ) + a}{\sqrt {-c \sin \left (f x + e\right ) + c}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {a+a\,\sin \left (e+f\,x\right )}{\sqrt {c-c\,\sin \left (e+f\,x\right )}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ a \left (\int \frac {\sin {\left (e + f x \right )}}{\sqrt {- c \sin {\left (e + f x \right )} + c}}\, dx + \int \frac {1}{\sqrt {- c \sin {\left (e + f x \right )} + c}}\, dx\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________